home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_09_02 / 9n02124b < prev    next >
Text File  |  1990-12-15  |  511b  |  27 lines

  1.  
  2. struct range 
  3.    {
  4.    int xmin;       /* Comment on xmin */
  5.    int xmax;       /* Etc. */
  6.    int ymin;
  7.    int ymax;
  8.    };
  9.  
  10. /* These are the references */
  11.  
  12. /* Comment on data_range */    
  13. extern struct range data_range;   
  14. /* Comment on variable1 */ 
  15. extern int variable1;
  16. /* Comment on variable2 */
  17. extern int variable2;
  18.  
  19. /* These are the definitions */
  20.  
  21. #ifdef ALLOCATE_SPACE
  22. struct range data_range =  { 0, 0, 0, 0 };
  23. int variable1 = 1; 
  24. int variable2 = 0;                 
  25. #endif
  26.  
  27.